package org.smart4j.chapter1.proxy.dynamicproxy;

import org.smart4j.chapter1.proxy.staticproxy.demo.Hello;
import org.smart4j.chapter1.proxy.staticproxy.demo.HelloImpl;

/**
 * @ClassName:
 * @Description:
 * @Author: LynnZou
 * @Date: 2017/5/27
 */
public class Main2 {

    public static void main(String[] args) {
        DynamicProxy dynamicProxy = new DynamicProxy(new HelloImpl());
        Hello helloProxy = dynamicProxy.getProxy();
        helloProxy.say("Jack");
    }
}
